<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--封条验证</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<%@ include file="/comm.jsp"%>
	<script>
		String.prototype.endWith=function(oString){  
			var reg=new RegExp(oString+"$");  
			return  reg.test(this);     
		}
		
		$(document).ready(function() {
			$("form *").autohelp("#autohelp");
			
			var operCode=$d("hdfOperCode").value;
			if(operCode != ""){
				$d("operCode"+operCode).checked=true;
				if(operCode.endWith('9')){
					$d("tr_remark").style.display="block";
				}
			}
		});
		
		function checkSubmit(){
			$('#busiInfo_saveOper').submit();
			return true;
		}
		
		function operChange(showflag){
			if(showflag==true)
				$d("tr_remark").style.display="block";
			else
				$d("tr_remark").style.display="none";
		}
</script>
	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}

-->
</style>

	<body leftmargin="0" topmargin="0" marginheight="0">
		<s:form name="formpage" action="busiInfo_saveOper" namespace="/seal">
			<%@ include file="/messages.jsp"%>
			<s:hidden name="busiOper.id" value="%{#request.busiOper.id }" />
			<s:hidden id="hdfOperCode" value="%{#request.busiOper.operCode }" />
				<div align="left">
					<s:if test="#request.editOpenflag">
					<table width="830" border="0">
						<tr>
							<td colspan="2">
								<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;中途开封
								</strong>
							</td>
						</tr>
						<tr>
							<td align="right" valign="top" width="124" rowspan="2">
								开封原因：
							</td>
							<td>
								<input type="radio" id="operCode10" name="busiOper.operCode" value="10" onclick="operChange(false);"/>
								海关查验
							</td>
						</tr>
						<tr>
							<td>
								<input type="radio" id="operCode19" name="busiOper.operCode"  value="19" onclick="operChange(true);"/>
								其他
							</td>
						</tr>
						<tr id="tr_remark" style="display: none">
							<td align="right" valign="top">
								备&nbsp;&nbsp;&nbsp;注：
							</td>
							<td>
								<textarea id="operInfo" name="busiOper.operInfo" rows="5" cols="50">${busiOper.operInfo }</textarea>
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
							<input type="button" class="button" id="save" value=" 保 存 " 
								onclick="checkSubmit();"/>
							<input type="button" class="button" id="back" value=" 取 消 "
								onclick="javascript:history.go(-1)" />
							</td>
						</tr>
					</table>
				</s:if>

					<%@ include file="viewBusiness.jsp"%>
				</div>
		</s:form>
	</body>
</html>